package com.example.qxfw.nyqx.service.impl;

import com.example.qxfw.common.entity.ny.AgriWeatherDistRecord;
import com.example.qxfw.nyqx.mapper.AgriWeatherDistRecordMapper;
import com.example.qxfw.nyqx.service.AgriWeatherDistRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgriWeatherDistRecordServiceImpl implements AgriWeatherDistRecordService {

    @Autowired
    private AgriWeatherDistRecordMapper agriWeatherDistRecordMapper;

    @Override
    public List<AgriWeatherDistRecord> getList(String stationId, String yield) {
        return agriWeatherDistRecordMapper.selectList2(stationId,yield);
    }

    @Override
    public List<AgriWeatherDistRecord> getList1(String cropName, String stationId, long year) {
        return agriWeatherDistRecordMapper.selectList1(cropName, stationId, year);
    }
}
